package CaesarCipher;

import java.util.Map;

public class FrequencyCounter {

    // 显示字符频率
    public void displayFrequency(Map<Character, Integer> frequencyMap) {
        for (Map.Entry<Character, Integer> entry : frequencyMap.entrySet()) {
            System.out.println(entry.getKey() + ": " + entry.getValue());
        }
    }
}